package com.heima.apis.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "频道管理", tags = "频道管理", description = "频道管理API")
public interface AdChannelControllerApi {

     @ApiOperation("频道分页列表查询")
     ResponseResult findByNameAndPage(ChannelDto dto);


    @ApiOperation("频道新增")
     ResponseResult save(AdChannel channel);


    @ApiOperation("频道更新")
     ResponseResult update(AdChannel adChannel);


    @ApiOperation("频道删除")
     ResponseResult deleteById(Integer id);

    @ApiOperation("查询所有频道")
    ResponseResult findAllChannel();
}